<?php
include 'secure/core.php';
include 'header.php';
include 'left.php'; 
$sql = "SELECT * FROM `uploads` ORDER BY `created_date` DESC LIMIT 3";          
$res = $ado->exec($sql);
?>
		<div id="right">
		<div class="section">
		    <div class="box">
					<div class="title">
						Todays Statistics
						<span class="hide"></span>
					</div>
					<div class="content">
						<table cellspacing="0" cellpadding="0" border="0"> 
							<thead> 
								<tr>
									<th>Todays Uploads</th>
									<th>Todays Earnings</th>
									<th>Todays Registrations</th>
								</tr>
							</thead>
							<tbody>
								<tr>
									<td><?php echo $statistics->getTodaysTotalUploads(); ?></td>
									<td>$<?php echo $statistics->getAdminsTodaysTotalEarnings(); ?></td>
									<td><?php echo $statistics->getTodaysTotalRegistrations(); ?></td>
								</tr>
							</tbody>
						</table>
					</div>
				</div>
			     <div class="box">
					<div class="title">
						Monthly Statistics
						<span class="hide"></span>
					</div>
					<div class="content">
						<table cellspacing="0" cellpadding="0" border="0"> 
							<thead> 
								<tr>
									<th>Files Uploaded</th>
									<th>Total Downloads</th>
									<th>Total Earnings</th>
									<th>Total Users</th>
								</tr>
							</thead>
							<tbody>
								<tr>
									<td><?php echo $statistics->getMonthlyTotalUploads(); ?></td>
									<td><?php echo $statistics->getMonthlyTotalDownloads(); ?></td>
									<td>$<?php echo $statistics->getAdminsMonthsEarnings(); ?></td>
									<td><?php echo $statistics->getMonthlyTotalRegistrations(); ?></td>
								</tr>
							</tbody>
						</table>
					</div>
				</div>
				        <div class="box">
					<div class="title">
						Total Statistics
						<span class="hide"></span>
					</div>
					<div class="content">
						<table cellspacing="0" cellpadding="0" border="0"> 
							<thead> 
								<tr>
									<th>Files Uploaded</th>
									<th>Total Downloads</th>
									<th>Total Earnings</th>
									<th>Total Users</th>
								</tr>
							</thead>
							<tbody>
								<tr>
									<td><?php echo $statistics->getTotalUploads(); ?></td>
									<td><?php echo $statistics->getTotalDownloads(); ?></td>
									<td>$<?php echo $earnings->getTotalEarnings(); ?></td>
									<td><?php echo $statistics->getTotalUsers(); ?></td>
								</tr>
							</tbody>
						</table>
					</div>
				</div>
			</div>
		</div>

<div id="footer">
			<div class="split">Copyright &#169; 2012 <a href="index.html">Paid4Upload</a>.</div>
			<div class="split right"><a href="http://www.paid4upload.com/forums">Forums</a> | <a href="tos.php">Terms of Service</a> | <a href="dmca.php">DMCA</a></div>
		</div>
	</div>
</div>

</body>


</html> 